package com.hnust.service.impl;

import com.hnust.dao.TestListDao;
import com.hnust.domain.TestList;
import com.hnust.service.TestListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("TestListService")
public class TestListServiceImpl implements TestListService {

    @Autowired
    private TestListDao testListDao;

    public List<TestList> findById(String id,int status,int pageNum,int pageSize) {
        List<TestList> testListById = testListDao.getTestListById(id, status,pageNum-1, pageSize);
        System.out.println(testListById);
        return testListById;
    }
}
